-- GENERATED SPELL FOR [League of Arathor Elite] --


function spell0_15130(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15130', 651, 1)
end

function spell1_15130(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15130', 8345, 1)
end

function Sorts_15130(pUnit, Event)
local choix_sorts_15130 = math.random(0, 1)
if choix_sorts_15130 == 0 then
pUnit:RegisterEvent('spell0_15130', 1, 1)
end
if choix_sorts_15130 == 1 then
pUnit:RegisterEvent('spell1_15130', 1, 1)
end
end

function mob15130_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15130', math.random(1500, 3000), 1)
end

function mob15130_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15130_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15130_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15130, 1, 'mob15130_Action')
RegisterUnitEvent(15130, 2, 'mob15130_Leave')
RegisterUnitEvent(15130, 3, 'mob15130_Kill')
RegisterUnitEvent(15130, 4, 'mob15130_Die')
